{extends file="./link.tpl"}
{block name=head}
<script src="js/jquery.min.js" ></script>
<script>
</script>
{/block}
{block name=body}
<br/><br/><br/><br/>
<center>
	<form name="dateForm" action="interestToPay.php" method="post">
	  <table>
      <tr>
        <td colspan="5" align="right">
          {html_select_date prefix='toDate' field_order="DmY" month_format="%m" start_year='-5' end_year='+5' time=$today day_value_format="%02d"}
          <input type="submit" name="submitDate" value="go" onclick="setInterestToPayRows();">
        </td>
  	  </tr>
		</table>
	</form>
  <table border="1" cellpadding="2" cellspacing="0">
    <tr>
      <th>Party Name</th>
      <th>Interest</th>
      <th>Last Date To Pay</th>
    </tr>
    {section name=res loop=$interestToPay}
      <tr>
        <td align="center">{$interestToPay[res].accountName}</td>
        <td align="right">{$interestToPay[res].interest30days}</td>
        <td align="center">{$interestToPay[res].transDate}</td>
      </tr>
    {/section}
    <tr>
      <td colspan="3" align="center">TOTLE : {$totle}</td>
    </tr>
  </table>
</center>
{/block}